from flask import Flask,jsonify
from flask_cors import CORS
from config import Cofig
from users import *
from admin.admin_users import *
from mobile import *
from jy_user import *

def create_app():
    app = Flask(__name__)
    with app.app_context():
        pass
    return app
app = create_app()
#跨域
CORS(app)

app.config.from_object(Cofig)
#注册蓝图
app.register_blueprint(users_bp,url_prefix='/users')
app.register_blueprint(admin_bp,url_prefix='/admin')
app.register_blueprint(bp_auser,url_prefix='/auser')
app.register_blueprint(bp_jyuser,url_prefix='/jyuser')





if __name__ == '__main__':
    app.run(debug=True)

